import React from "react";
import Dashboard from "../components/Dashboard";


//这个地方添加

const menuList = [
    // 菜单相关路由
    {key: '/app/dashboard', title: '首页', icon: "DashboardOutlined", component: 'Dashboard'},
    {
        key: '/app/ums', title: '系统管理', icon: "DashboardOutlined", component: 'Ums',
        children: [
            {key: '/app/ums/staffManager', title: '用户管理', icon: "BarChartOutlined", component: 'staffManager'},
            {key: '/app/ums/jobManager', title: '岗位管理', icon: "BarChartOutlined", component: 'jobManager'},
            {key: '/app/ums/areaManager', title: '部门管理', icon: "BarChartOutlined", component: 'areaManager'},
            {key: '/app/ums/roleManager', title: '角色管理', icon: "BarChartOutlined", component: 'roleManager'},
        ]

    },
    {
        key: '/app/cms', title: '内容管理', icon: "DashboardOutlined", component: 'Cms',
        children: [
            {key: '/app/cms/contentManager', title: '文章管理', icon: "BarChartOutlined", component: 'Cms'},
            {key: '/app/ums/jobManager', title: '岗位管理', icon: "BarChartOutlined", component: 'jobManager'},
            {key: '/app/ums/areaManager', title: '部门管理', icon: "BarChartOutlined", component: 'areaManager'},
            {key: '/app/ums/roleManager', title: '角色管理', icon: "BarChartOutlined", component: 'roleManager'},
        ]

    }, {
        key: '/app/weiXinMs', title: '公众号管理', icon: "AreaChartOutlined", component: 'WeChatMs',
        children: [
            {key: '/app/weiXinMs', title: '数据统计', icon: "BarChartOutlined", component: 'WeChatMs'},
            {key: '/app/wx/WeiXinUms', title: '用户管理', icon: "BarChartOutlined", component: 'areaManager'},
            {key: '/app/wxms/wxManager', title: '消息管理', icon: "BarChartOutlined", component: 'jobManager'},
            {key: '/app/wxms/wxeManager', title: '账号管理', icon: "BarChartOutlined", component: 'roleManager'},
            {key: '/app/wxms/wxManager', title: '客服消息', icon: "BarChartOutlined", component: 'roleManager'},
        ]

    },


    {
        key: '/app/tools', title: '系统监控', icon: "DashboardOutlined", component: 'tools',
        children: [
            {key: '/app/ums/staffManager', title: '在线用户', icon: "BarChartOutlined", component: 'staffManager'},
            {key: '/app/ums/jobManager', title: '定时任务', icon: "BarChartOutlined", component: 'jobManager'},
            {key: '/app/ums/areaManager', title: '数据监控', icon: "BarChartOutlined", component: 'areaManager'},
            {key: '/app/ums/roleManager', title: '服务监控', icon: "BarChartOutlined", component: 'roleManager'},
        ]

    },


    {
        key: '/app/ui',
        title: 'UI',
        icon: 'AreaChartOutlined',
        children: [
            {key: '/app/ui/buttons', title: '按钮', icon: "BarChartOutlined", component: 'Buttons'},
            {key: '/app/ui/icons', title: '图标', icon: 'LineOutlined', component: 'Icons'},
            {key: '/app/ui/spins', title: '加载中', icon: 'LineOutlined', component: 'Spins'},
            {key: '/app/ui/modals', title: '对话框', icon: 'CodeOutlined', component: 'Modals'},
            {key: '/app/ui/notifications', title: '通知提醒框', icon: 'EditOutlined', component: 'Notifications'},
            {key: '/app/ui/tabs', title: '标签页', icon: 'CameraOutlined', component: 'Tabs'},
            {key: '/app/ui/banners', title: '轮播图', icon: 'ApiOutlined', component: 'Banners'},
            {key: '/app/ui/wysiwyg', title: '富文本', icon: 'LineOutlined', component: 'WysiwygBundle'},
            {key: '/app/ui/drags', title: '拖拽', icon: 'LineOutlined', component: 'Drags'},
            {key: '/app/ui/gallery', title: '画廊', icon: 'LineOutlined', component: 'Gallery'},
            {key: '/app/ui/map', title: '地图', icon: 'LineOutlined', component: 'MapUi'},
        ],
    },
    {
        key: '/app/animation',
        title: '动画',
        icon: 'rocket',
        children: [
            {
                key: '/app/animation/basicAnimations',
                title: '基础动画',
                component: 'BasicAnimations', icon: 'LineOutlined',
            },
            {
                key: '/app/animation/exampleAnimations',
                title: '动画案例',
                component: 'ExampleAnimations', icon: 'LineOutlined',
            },
        ],
    },
    {
        key: '/app/table',
        title: '表格',
        icon: 'copy',
        children: [
            {key: '/app/table/basicTable', title: '基础表格', icon: 'LineOutlined', component: 'BasicTable'},
            {key: '/app/table/advancedTable', title: '高级表格', icon: 'LineOutlined', component: 'AdvancedTable'},
            {
                key: '/app/table/asynchronousTable',
                title: '异步表格', icon: 'LineOutlined',
                component: 'AsynchronousTable',
            },
        ],
    },
    {
        key: '/app/form',
        title: '表单',
        icon: 'edit',
        children: [{key: '/app/form/basicForm', title: '基础表单', icon: 'LineOutlined', component: 'BasicForm'}],
    },
    {
        key: '/app/chart',
        title: '图表',
        icon: 'area-chart',
        children: [
            {key: '/app/chart/echarts', title: 'echarts', icon: 'LineOutlined', component: 'Echarts'},
            {key: '/app/chart/recharts', title: 'recharts', icon: 'LineOutlined', component: 'Recharts'},
        ],
    },
    {
        key: '/children4',
        title: '页面',
        icon: 'switcher',
        children: [
            {key: '/login', icon: 'LineOutlined', title: '登录'},
            {key: '/404', icon: 'LineOutlined', title: '404'},
        ],
    },
    {
        key: '/app/auth',
        title: '权限管理',
        icon: 'safety',
        children: [
            {key: '/app/auth/basic', title: '基础演示', component: 'AuthBasic'},
            {
                key: '/app/auth/routerEnter',
                title: '路由拦截', icon: 'LineOutlined',
                component: 'RouterEnter',
                requireAuth: 'auth/testPage',
            },
        ],
    },
    {
        key: '/app/cssModule',
        title: 'cssModule',
        icon: 'star',
        component: 'Cssmodule',
    },
    {
        key: '/app/extension',
        title: '功能扩展',
        icon: 'bars',
        children: [
            {
                key: '/app/extension/queryParams',
                title: '问号形式参数', icon: 'LineOutlined',
                component: 'QueryParams',
                query: '?param1=1&param2=2',
            },
            {
                key: '/app/extension/visitor',
                title: '访客模式', icon: 'LineOutlined',
                component: 'Visitor',
                login: true,
            },
            {
                key: '/app/extension/multiple',
                title: '多级菜单',
                children: [
                    {
                        key: '/app/extension/multiple/child',
                        title: '多级菜单子菜单',
                        children: [
                            {
                                key: '/app/extension/multiple/child/child',
                                title: '多级菜单子子菜单',
                                component: 'MultipleMenu',
                            },
                        ],
                    },
                ],
            },
        ],
    },
];
export default menuList;
